/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/10/11 9:15
 * @Copyright
 */
package IO2;
import java.io.FileReader;
public class PackageDesc {
    public static void main(String[] args) throws Exception {
        FileReader reader=new FileReader("E:\\code\\TestDemo\\src\\com\\itSystem\\套餐资费说明");
        char[] chars=new char[1024];
        int len=0;
        StringBuffer sb=new StringBuffer();
        while ((len=reader.read(chars)) !=-1){
            sb.append(chars,0,len);//拼接字符串
        }
        System.out.println(sb);
    }
}
